\documentclass[twoside,a4paper]{refrep}

\usepackage{makeidx}
\usepackage[numbers]{natbib}
\usepackage{xspace}
\usepackage{verbatim}

\usepackage[pdftex,bookmarks,colorlinks,breaklinks]{hyperref}
\hypersetup{linkcolor=blue,
            citecolor=blue,
	    filecolor=black,
	    urlcolor=blue,
	    linktocpage}

\usepackage{doi}

\usepackage{listings}
\newcommand{\includecode}[2][sh]{\lstinputlisting[language=#1]{#2}}

\settextfraction{1.0}

\newcommand{\cFAC}{{cFAC}\xspace}
\newcommand{\facversion}{{1.6.2}\xspace}

\newcommand{\opt}[1]{{\textnormal{[}}{#1}\hspace{0.5mm}{\textnormal{]}}}
\newcommand{\var}[1]{\textit{#1}}
\newcommand{\key}[1]{\texttt{#1}}

\newenvironment{dbdesc}{\textbf{Field Description:} \begin{list}
	{:}{\setlength{\labelwidth}{2in}
	   \setlength{\leftmargin}{2in}
	   \setlength{\labelsep}{0.1in}
	   \setlength{\rightmargin}{0.2in}}}
	{\end{list}}

\newcounter{fundesc}
\newenvironment{fundesc}[2]{
        \refstepcounter{fundesc}
	\begin{center}
	\begin{minipage}{\textwidth}
	\subsection*{\key{\textbf{#1}}(\var{#2}):}
	\index{#1}
        \label{#1}
	\addcontentsline{toc}{subsection}{#1}}
	{\end{minipage}\end{center}}
\newcommand{\funcref}[2][]{\hyperref[#2]{\texttt{#2(\var{#1})}}}

\newcounter{faq}[section]
\newcommand{\faq}[2]{\stepcounter{faq}
	\begin{minipage}{\textwidth}
	\textbf{Q\arabic{faq}: #1?}\\#2
	\end{minipage}}

\usepackage{dcolumn}

\newcommand{\threej}[6]{\ensuremath{\left({#1\atop #4}{#2\atop #5}
{#3\atop #6}\right)}}
\newcommand{\sixj}[6]{\ensuremath{\left\{{#1\atop #4}{#2\atop #5}
{#3\atop #6}\right\}}}

\setcounter{tocdepth}{1}

\makeindex
\usepackage[totoc]{idxlayout}

% Doxygen stuff
\usepackage{cfacdbdoc/doxygen}
\renewcommand{\familydefault}{\sfdefault}
\newcommand{\+}{\discretionary{\mbox{\scriptsize$\hookleftarrow$}}{}{}}

\begin{document}

\title{\cFAC--\facversion Manual}
\author{Ming Feng Gu\thanks{With post-FAC--1.1.1 changes by Evgeny Stambulchik}}

\date{}

\maketitle

\tableofcontents

\include{overview}

\include{physics}

\include{sfaclang}

\include{fformat}

\include{cfacdb}

\include{faq}


\bibliographystyle{unsrtnat}
\bibliography{facref}
\addcontentsline{toc}{chapter}{Bibliography}

\printindex

\include{gpl-3.0}

\end{document}
